package com.zlf.interceptor.opt;

import com.zlf.interceptor.filter.Filter;
import com.zlf.interceptor.util.Target;

/**
 *
 * @author Administrator
 * @version 1.0
 * @date 2017/2/24 15:19
 */
public class FilterManager {
    FilterChain filterChain;

    public FilterManager(Target target){
        filterChain = new FilterChain();
        filterChain.setTarget(target);
    }
    public void setFilter(Filter filter){
        filterChain.addFilter(filter);
    }

    public void filterRequest(String request){
        filterChain.execute(request);
    }
}
